const app=require('express')();

app.use(require('body-parser')());


app.get('/',(req,res)=>{
   res.sendFile(__dirname+'/index.html');
});

app.post('/',(req,res)=>{
    console.log('root:\n',req.body.root,typeof req.body.root);
    res.send(req.body.root);
});

app.listen(5000,()=>{
    console.log('postData@5000----',new Date());
});